/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2025-02-25 09:40:08
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2025-02-26 08:57:12
 * @FilePath: /vue3-admin-server/src/shareModules/auth/auth.module.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { DeptService } from './dept.service';
import { MenuService } from './menu.service';
import { RoleService } from './role.service';
import { UserService } from './user.service';
import { DeptEntity } from 'src/entities/dept.entity';
import { MenuEntity } from 'src/entities/menu.entity';
import { RoleEntity } from 'src/entities/role.entity';
import { UserEntity } from 'src/entities/user.entity';
import { RedisShareModule } from 'src/shareModules/redis/redis.module';
import { JwtShareModule } from 'src/shareModules/jwt.module';
import { FileShareModule } from 'src/shareModules/file/file.module';

@Module({
    imports: [
        RedisShareModule,
        TypeOrmModule.forFeature([
            DeptEntity,
            MenuEntity,
            RoleEntity,
            UserEntity
        ]),
        JwtShareModule,
        FileShareModule
    ],
    providers: [DeptService, MenuService, RoleService, UserService],
    exports: [DeptService, MenuService, RoleService, UserService]
})
export class AuthShareModule {}

export {
    DeptEntity,
    MenuEntity,
    RoleEntity,
    UserEntity,
    DeptService,
    MenuService,
    RoleService,
    UserService
};
